<?php
namespace ImiDemo\HttpDemo\MainServer\Model;

use Imi\Model\Model;
use Imi\Model\Annotation\Table;
use Imi\Model\Annotation\Column;
use Imi\Model\Annotation\Entity;

/**
 * UserSns
 * @Entity
 * @Table(name="tb_user_sns", id={"user_id"})
 * @property int $userId
 * @property string $qq
 */
class UserSns extends Model
{
    /**
     * user_id
     * @Column(name="user_id", type="int", length=10, accuracy=0, nullable=false, default="", isPrimaryKey=true, primaryKeyIndex=0, isAutoIncrement=false)
     * @var int
     */
    protected $userId;

    /**
     * 获取 userId
     *
     * @return int
     */ 
    public function getUserId()
    {
        return $this->userId;
    }

    /**
     * 赋值 userId
     * @param int $userId user_id
     * @return static
     */ 
    public function setUserId($userId)
    {
        $this->userId = $userId;
        return $this;
    }

    /**
     * qq
     * @Column(name="qq", type="varchar", length=11, accuracy=0, nullable=false, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var string
     */
    protected $qq;

    /**
     * 获取 qq
     *
     * @return string
     */ 
    public function getQq()
    {
        return $this->qq;
    }

    /**
     * 赋值 qq
     * @param string $qq qq
     * @return static
     */ 
    public function setQq($qq)
    {
        $this->qq = $qq;
        return $this;
    }

}